Why isn't my button triggering the visibility change in form validation with JavaScript

welcome to shbcf.ru